-- GENERATED SPELL FOR [Coilskar Defender] --


function spell0_19762(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(38233,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19762', 8287, 1)
end

function spell1_19762(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(38031,pUnit)
pUnit:RegisterEvent('Sorts_19762', 6311, 1)
end

function Sorts_19762(pUnit, Event)
local choix_sorts_19762 = math.random(0, 1)
if choix_sorts_19762 == 0 then
pUnit:RegisterEvent('spell0_19762', 1, 1)
end
if choix_sorts_19762 == 1 then
pUnit:RegisterEvent('spell1_19762', 1, 1)
end
end

function mob19762_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19762', math.random(1500, 3000), 1)
end

function mob19762_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19762_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19762_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19762, 1, 'mob19762_Action')
RegisterUnitEvent(19762, 2, 'mob19762_Leave')
RegisterUnitEvent(19762, 3, 'mob19762_Kill')
RegisterUnitEvent(19762, 4, 'mob19762_Die')
